package com.insurance.modules.claim.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.insurance.common.utils.PageUtils;
import com.insurance.common.utils.Query;

import com.insurance.modules.claim.dao.InsuredInfoDao;
import com.insurance.modules.claim.entity.InsuredInfoEntity;
import com.insurance.modules.claim.service.InsuredInfoService;


@Service("insuredInfoService")
public class InsuredInfoServiceImpl extends ServiceImpl<InsuredInfoDao, InsuredInfoEntity> implements InsuredInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<InsuredInfoEntity> page = this.page(
                new Query<InsuredInfoEntity>().getPage(params),
                new QueryWrapper<InsuredInfoEntity>()
        );

        return new PageUtils(page);
    }

}